x11: Stop using gdk_surface_set_geometry_hints
authorMatthias Clasen <mclasen@redhat.com>
Sat, 29 Feb 2020 18:06:43 +0000 (13:06 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 11 Mar 2020 23:35:56 +0000 (19:35 -0400)
Just use the backend function directly.

gdk/x11/gdksurface-x11.c

index bed745b8f5531a5d4e3fe7a997bacb003a021ea5..2cd4252e29778404334fd20340da9017d8b6f642 100644 (file)
@@ -1520,6 +1520,10 @@ gdk_x11_surface_update_popups (GdkSurface *parent)
     }
 }
 
+static void gdk_x11_surface_set_geometry_hints (GdkSurface         *surface,
+                                                const GdkGeometry *geometry,
+                                                GdkSurfaceHints     geom_mask);
+
 void
 _gdk_x11_surface_set_surface_scale (GdkSurface *surface,
                                  int scale)
@@ -1542,9 +1546,9 @@ _gdk_x11_surface_set_surface_scale (GdkSurface *surface,
       geom_mask = toplevel->last_geometry_hints_mask &
         (GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE | GDK_HINT_BASE_SIZE | GDK_HINT_RESIZE_INC);
       if (geom_mask)
-        gdk_surface_set_geometry_hints (surface,
-                                       &toplevel->last_geometry_hints,
-                                       geom_mask);
+        gdk_x11_surface_set_geometry_hints (surface,
+                                            &toplevel->last_geometry_hints,
+                                            geom_mask);
     }
 
   if (impl->override_redirect)